{% extends "base.html" %}

{% from 'lenta/lenta/macros.jinja' import view_lenta_link %}


{% block inline_style_block %}
	div.lenta {
			margin: 8px 4px 5px 7px;
	}
	h4.lenta {
		margin: 0 0 5px 0;
		font-family: 'Bookman Old Style', serif;
	}
	p.lenta {
		text-align: justify;
		padding: 2px 7px 2px 5px;
		border-style: solid;
		border-width: 1px;
		border-radius: 2px;
		border-color: #D1D1D1;
	}
	#new_lenta_link {
		padding: 7px 4px 7px 4px;
		background: #FFE53B;
		font-weight: 700;
		color: #2B2B2B;
	}
	#new_lenta_link:hover {
		background: #fcdf21;
	}
{% endblock %}
	
{% block page_content %}
    
    <h3 style="text-align: center;">Your's Lentas</h3>
    {% if my_lentas %}
		{% for l in my_lentas %}
		<div class="lenta">
			<h4 class="lenta">{{ view_lenta_link(l)|safe }}</h4>
			<p class="lenta">{{ l.desc }}</p>
		</div>	
		{% endfor %}
	{% endif %}		
	<p style="margin: 20px;">
	   <a id="new_lenta_link" href="{{ url_for('lenta.add_lenta') }}">New Lenta</a>
	</p>
{% endblock page_content %}
